package com.xw.service;

import com.xw.entity.Message;

import java.io.IOException;
/**
 * @Description: TODO
 * @Date: 2024/12/18 16:52
 * @Version: 1.0
 * @author 86151
 */
public interface WebSocketServerService {
    void sendMessage(String userId, String message) throws IOException;
    void sendMessageAll(String message);
    void sendMessageAll(String message, String userId) throws IOException;
}